<!DOCTYPE html>
<html xmlns:th="http://www.springframework.org/schema/jdbc" lang="">
<head>
    <meta charset="utf-8">
    <title>商品管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../../static/layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="../../../static/expand/dtree/font/dtreefont.css">
    <link rel="stylesheet" href="../../../static/expand/dtree/dtree.css">
</head>
<body>

    <!--搜索表单-->
    <form class="layui-form layui-from-pane" action="" style="margin-top:20px"   >
        <div class="layui-inline">
            <label class="layui-form-label">商品类型</label>
            <div class="layui-input-block">
                <select id="search_dept_type"  >
                    <option value="">请选择</option>
                    <option value="0">上架商品</option>
                    <option value="1">下架商品</option>
                </select>
            </div>
        </div>

        <div class="layui-inline" >
            <div class="layui-input-block">
                <button type="button" id="searchDept" class="layui-btn layui-btn-primary  layui-btn-sm layui-btn-submit " lay-submit="" lay-filter="searchDept">
                    <i class="layui-icon">&#xe615;</i>
                </button>
                <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">
                    <i class="layui-icon">&#xe669;</i>
                </button>
            </div>
        </div>
    </form>

    <!--lay-filter="department_table" 表格初始化后下边监听table.on('toolbar(department_table)', function(obj)表格中的头+行操作事件-->
    <div >
        <table class="layui-table" id="department_table" lay-filter="department_table"></table>
    </div>

    <ul id="DeptDtree" class="dtree" data-id="0"></ul>
    <!--department_table_right 运用在表格初始化行数据cols中的操作栏 toolbar: -->
    <script type="text/html" id="department_table_right">
        <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail_department">查看</a>
        <a class="layui-btn layui-btn-xs" lay-event="edit_department">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete_department">删除</a>
    </script>

    <!-- department_table_top 运用在表格初始化属性中的 toolbar: -->
    <script type="text/html" id="department_table_top"  >
        <div class="layui-btn-container">
            <button id="add_perm" type="button" class="layui-btn layui-btn-primary layui-btn-sm"  lay-event="add_department">
                <i class="layui-icon">&#xe654;</i>
            </button>
            <button id="deleted_perm" type="button" class="layui-btn layui-btn-primary layui-btn-sm" lay-event="batch_department_deleted">
                <i class="layui-icon">&#xe640;</i>
            </button>
        </div>
    </script>

<script src="../../../static/layui/layui.js" charset="utf-8"></script>
<script src="../../../static/js/hospital/department.js"></script>
<script src="../../../static/expand/main.js" charset="utf-8"></script>

<script type="text/html" id="statusTemp">
    {{#  if(d.media.status==1){ }}
    <input type="checkbox" name="status" lay-skin="switch" checked   lay-text="开启|关闭"  value= {{ d.media.id}}  lay-filter="status" >
    {{#  } else { }}
    <input type="checkbox" name="status" lay-skin="switch"  lay-text="开启|关闭"  value= {{ d.media.id} lay-filter="status" >
    {{#  } }}
</script>
</body>
</html>
